import prompt from '@system.prompt';
export default {
    data: {
        imgList: [
            {
                url: 'https://img0.baidu.com/it/u=4242063269,64262324&fm=26&fmt=auto&gp=0.jpg',
                type: ['大海', '天空', '太阳']
            },{
                url: 'https://img1.baidu.com/it/u=2010702289,356523921&fm=26&fmt=auto&gp=0.jpg',
                type: ['大海', '沙滩', '太阳', '树']
            },{
                url: 'https://img2.baidu.com/it/u=1750024682,1286144682&fm=26&fmt=auto&gp=0.jpg',
                type: ['花']
            },{
                url: 'https://img1.baidu.com/it/u=1718001942,1956372769&fm=26&fmt=auto&gp=0.jpg',
                type: ['树']
            },{
                url: 'https://img0.baidu.com/it/u=3707137301,3618470417&fm=26&fmt=auto&gp=0.jpg',
                type: ['花']
            },{
                url: 'https://img1.baidu.com/it/u=2279662431,2455847681&fm=26&fmt=auto&gp=0.jpg',
                type: ['花']
            },{
                url: 'https://img0.baidu.com/it/u=3245436513,1771274392&fm=26&fmt=auto&gp=0.jpg',
                type: ['树']
            },{
                url: 'https://img0.baidu.com/it/u=1373280178,2343518897&fm=26&fmt=auto&gp=0.jpg',
                type: ['树']
            },{
                url: 'https://img1.baidu.com/it/u=3759602221,3704556457&fm=26&fmt=auto&gp=0.jpg',
                type: ['天空', '云']
            },{
                url: 'https://img0.baidu.com/it/u=2964763590,3652925062&fm=26&fmt=auto&gp=0.jpg',
                type: ['天空', '云']
            },{
                url: 'https://img0.baidu.com/it/u=2074974593,2434530407&fm=26&fmt=auto&gp=0.jpg',
                type: ['云', '天空', '太阳']
            },{
                url: 'https://img2.baidu.com/it/u=2150393808,1712478068&fm=26&fmt=auto&gp=0.jpg',
                type: ['大海', '天空', '云', '树', '沙滩']
            },{
                url: 'https://img2.baidu.com/it/u=2441840112,881493323&fm=26&fmt=auto&gp=0.jpg',
                type: ['大海', '天空', '云', '树', '沙滩']
            },{
                url: 'https://img2.baidu.com/it/u=1441015319,2754012714&fm=15&fmt=auto&gp=0.jpg',
                type: ['树', '花']
            },{
                url: 'https://img0.baidu.com/it/u=1974642835,2330469923&fm=253&fmt=auto&app=120&f=JPEG?w=640&h=360',
                type: ['树', '天空', '云']
            }
        ]
    },
//    验证成功的回调
    verificationSuccess() {
        prompt.showToast({
            message: '验证成功',
            duration: 2000,
        });
    },
//    验证失败的回调
    verificationError() {
        prompt.showToast({
            message: '验证失败',
            duration: 2000,
        });
    },
//    类型4验证码的验证事件
    type4ButtonClick(index) {
        this.$child('verification'+index).verification();
    }
}
